package com.pine.admin.modules.system.entity;

import java.io.Serializable;
import java.util.List;

/**
 * 用户身份信息，存入Session  由于Tomcat正常关闭时会将Session序列化的本地硬盘上，所以实现Serializable接口
 *
 * @author Create By Pine
 * zhangsong@crmhby.com
 * @date 2018/3/27 10:40
 */
public class ActiveUserEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    private Integer userId; //用户id(主键)
    private String userCode; // 用户账号
    private String userName; // 用户姓名

    private String uidToken;


    private List<SysPermissionEntity> menus; //菜单
    private List<SysPermissionEntity> permissions; //权限

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public List<SysPermissionEntity> getMenus() {
        return menus;
    }

    public void setMenus(List<SysPermissionEntity> menus) {
        this.menus = menus;
    }

    public List<SysPermissionEntity> getPermissions() {
        return permissions;
    }

    public void setPermissions(List<SysPermissionEntity> permissions) {
        this.permissions = permissions;
    }

    public String getUidToken() {
        return uidToken;
    }

    public void setUidToken(String uidToken) {
        this.uidToken = uidToken;
    }
}
